﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace iemtm.WeChat.Core.RabbitMQ
{
    public class RabbitModel
    {
        public string DTUID { get; set; }
        public RabbitTypeEnum Type { get; set; }
        public RabbitUpdateTypeEnum UpdateType { get; set; }

        public object obj { get; set; }
        public DateTime UpdateTime { get; set; } = DateTime.Now;

    }
    public enum RabbitTypeEnum
    {
        /// <summary>
        /// 更新采集器和机组
        /// </summary>
        UpdateCG = 1,
    }
    public enum RabbitUpdateTypeEnum
    {
        /// <summary>
        /// 在线
        /// </summary>
        OnLine = 1,
        /// <summary>
        /// 更新GPS
        /// </summary>
        GPS = 2,//
        /// <summary>
        /// 更新运行状态（瞬态包）
        /// </summary>
        RunState = 3,//
        /// <summary>
        /// 离线
        /// </summary>
        OffLine = 4,//离线

        /// <summary>
        /// 停机的时候- 更新最后启动状态
        /// </summary>
        RECORD = 5,//停机
        /// <summary>
        /// 开机包
        /// </summary>
        GENSTA = 6,//开机包
        /// <summary>
        /// 上传的状态包
        /// </summary>
        COMMON = 7,//上传的状态包

    }

    /// <summary>
    /// 更新经纬度
    /// </summary>
    public class UGPS
    {
        public string DTUID { get; set; }
        public DateTime GPSTime { get; set; }
        public double GpsLat { get; set; }
        public double GpsLgt { get; set; }
        public double GpsLatBD { get; set; }
        public double GpsLgtBD { get; set; }
        public string LAC { get; set; }
        public string CellID { get; set; }


    }

    public class GenCollBaseAreaPrj
    {
        public Collector c;
        public Generator gen;
        public Area area;
        public Project prj;
        public BaseStation bs;
        public Collector561 c561;
        public Collector266 c266;
    }
    public class Collector561
    {


    }
    public class Collector266
    {


    }
}
